import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
//引入signin模块
import Signin from '@/components/SignIn/SignIn'
const Home = () => import(/* webpackChunkName: "Home" */ '@/components/Home/Home')
const PermissionManage = () => import(/* webpackChunkName: "PermissionManage" */ '@/components/Home/System/PermissionManage')

export default new Router({
  routes: [
    {
      path: '/',
      redirect: {name: 'Home'}
    },
    {
      path: '/Home',
      component: Home,
      name: 'Home',
      children: [
        ///Home/PermissionManage
        {path: 'PermissionManage',name:'权限管理',component:PermissionManage}
      ]
    },
    {
       path: '/Signin',
       name: 'Signin',
       component: Signin
     }
  ]
})
